import { RequestType } from '~/config/enum/request-type.enum'
const CONTROLLER = 'user'
const SERVICE = 'service-manage'

export default {
  /**
   * 新增用户
   */
  createUser: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'createUser',
    type: RequestType.Post
  },
  /**
   * 修改用户
   */
  updateUser: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'updateUser',
    type: RequestType.Put
  },
  /**
   * 分页查询用户
   */
  findUserListByPage: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'findUserListByPage',
    type: RequestType.Get
  },
  /**
   * 用户分配角色
   */
  assignRoleToUser: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'assignRoleToUser',
    type: RequestType.Post
  },
  /**
   * 用户分配角色查询可分配的角色
   */
  findAssignRoleList: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'findAssignRoleList',
    type: RequestType.Get
  }
}